import {getRoles} from '../../api/roles'
let rolesAction = ()=>{
    return (dispatch:any)=>{
        getRoles().then(res=>{
            dispatch({
                type:"GET_LIST",
                list:res.data.data
            })
        })
    }
}

export default rolesAction;